package com.atguigu.springcloud.controller;

import com.atguigu.springcloud.service.AlibabaPaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AlibabaOrderController {
    @Autowired
    private AlibabaPaymentService alibabaPaymentService;
    @GetMapping("/consumer/alibaba/payment/get/{id}")
    public String alibabaOrder(@PathVariable("id") String id){
       return alibabaPaymentService.alibabaPayment(id);
    }

}
